package cn.edu.ujn.project.supermarket.service;

import java.util.List;

import cn.edu.ujn.project.supermarket.domain.VipUser;
import cn.edu.ujn.project.supermarket.extendbean.SellReportChild;

/**
 * vip余额Service接口
 * 
 * @author zhaomh
 * @date 2023-11-13
 */
public interface IVipUserService 
{
    /**
     * 查询vip余额
     * 
     * @param vipId vip余额主键
     * @return vip余额
     */
    public VipUser selectVipUserByVipId(String vipId);

    public VipUser selectVipUserByUserId(Long userId);

    /**
     * 查询vip余额列表
     * 
     * @param vipUser vip余额
     * @return vip余额集合
     */
    public List<VipUser> selectVipUserList(VipUser vipUser);

    /**
     * 新增vip余额
     * 
     * @param vipUser vip余额
     * @return 结果
     */
    public int insertVipUser(VipUser vipUser);

    /**
     * 修改vip余额
     * 
     * @param vipUser vip余额
     * @return 结果
     */
    public int updateVipUser(VipUser vipUser);

    /**
     * 批量删除vip余额
     * 
     * @param vipIds 需要删除的vip余额主键集合
     * @return 结果
     */
    public int deleteVipUserByVipIds(String vipIds);
    /**
     * vip余额充值
     * 
     * @param vipIds 
     * @return 结果
     */
    public int vipUserCharge(VipUser vipUser);
    /**
     * 删除vip余额信息
     * 
     * @param vipId vip余额主键
     * @return 结果
     */
    public int deleteVipUserByVipId(String vipId);
    public List<SellReportChild> selectVipPurchaseRecordList(SellReportChild sellReportChild);
}
